package cn.com.surker.oa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 收款账户
 * </p>
 *
 * @author admin
 * @since 2022-10-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OaAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 收款名称
     */
	@NotBlank(message = "请输入收款名称")
    private String realName;

	/**
	 * 简称
	 */
	private String abbrName;

    /**
     * 开户行
     */
	@NotBlank(message = "请输入开户行")
    private String bankName;

    /**
     * 银行账户
     */
	@NotBlank(message = "请输入银行账户")
    private String bankNo;

    /**
     * 使用人ID
     */
    private Long uid;

    /**
     * 使用人
     */
    private String name;

    /**
     * 状态(0:启用1:禁用)
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    public OaAccount(){}
    public OaAccount(String realName, String abbrName, String bankName, String bankNo, Long uid, String name, Integer status, String remark, Date createTime) {
        this.realName = realName;
        this.abbrName = abbrName;
        this.bankName = bankName;
        this.bankNo = bankNo;
        this.uid = uid;
        this.name = name;
        this.status = status;
        this.remark = remark;
        this.createTime = createTime;
    }
}
